<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>米行域名批量交易平台-交易所 用户注册</title>
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="微信云端、微讯云端、微信营销、微信代运营、微信托管、微网站、微商城、微营销、微信定制开发">
<meta name="description" content="微讯云端,国内最大的微信公众智能服务平台,云端十大微体系:微菜单、微官网、微会员、微活动、微商城、微推送、微服务、微统计、微支付、微客服,企业微营销必备。">
<!--
<link rel="stylesheet" href="/css/reg_2.css">
-->
<title>注册-微讯云端-用户中心</title>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.form.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/yyucadapter.js"></script>
<link rel="stylesheet" href="{$app_path}{$static_path}/css/LogReg.css?v=1.1">
<link rel="stylesheet" href="{$app_path}{$static_path}/css/Register.css?v=1.0">
<!--[if lt IE 9]>
    <script src="http://www.weixinyunduan.com/loginnew/js/css3-mediaqueries.js"></script>
<![endif]-->
<script type="text/javascript">
$(function(){  
  //判断浏览器是否支持placeholder属性
  supportPlaceholder='placeholder'in document.createElement('input'),
  placeholder=function(input){
    var text = input.attr('placeholder'),
    defaultValue = input.defaultValue;
    var password = input.attr('placeholder'),
    defaultValue2 = input.defaultValue2;
    if(!defaultValue){
      input.val(text).addClass("phcolor");
    }
    if(!defaultValue2){
      input.val(password).addClass("phcolor");
    }
    input.focus(function(){
      if(input.val() == text){
        $(this).val("");
      }
      if(input.val() == password){
        $(this).val("");
      }
    });
    input.blur(function(){
      if(input.val() == ""){
        $(this).val(text).addClass("phcolor");
      }
      if(input.val() == ""){
        $(this).val(password).addClass("phcolor");
      }
    });
    //输入的字符不为灰色
    input.keydown(function(){
      $(this).removeClass("phcolor");
    });
  };
 
  //当浏览器不支持placeholder属性时，调用placeholder函数
  if(!supportPlaceholder){
    $('input').each(function(){
      text = $(this).attr("placeholder");
      if($(this).attr("type") == "text"){
        placeholder($(this));
      }
     password = $(this).attr("placeholder");
      if($(this).attr("type") == "password"){
        placeholder($(this));
      }
    });
  }
});
</script>
<script type="text/javascript">
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
{
  var _interval = window.setInterval(function () {
    var autofills = $('input:-webkit-autofill');
    if (autofills.length > 0) {
      window.clearInterval(_interval); // 停止轮询
      autofills.each(function() {
        var clone = $(this).clone(true, true);
        $(this).after(clone).remove();
      });
    }
  }, 20);
}
</script>

</head>
<body overflow-x:hidden;="" overflow-y:auto;="">
<div class="login_html">
	<div class="login_bg">
		<img src="{$app_path}{$static_path}/img/bg_1.jpg?v=1.1" width="100%" height="100%"> 
    </div>
	<div class="login_body">
		<div class="back_home">
        	<a href="{:U('Index/index')}">返回首页</a>
        	<a href="{:U('Login/index')}" class="register">返回登录</a>    
        </div>

    	<div class="box" id="register_box">
		<form id="regform" class="form-horizontal" action="{:U('Register/register')}" method="post">

		    		<div class="logo"><img src="{$app_path}{$static_path}/img/yunduan_logo.png" width="100%" height="100%"></div>
				
			<div class="user">
				<div class="userdefault" for="username">用&nbsp;&nbsp;户&nbsp;&nbsp;名</div>
<input style="display:none">
                 <input type="text" required="required" yyucval="YYUCUNIQUE@user@un@REG@MSG<img src={$app_path}{$static_path}/img/error.png width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER/^.{0,30}$/REG@MSG<img src=&quot;{$app_path}{$static_path}/img/error.png&quot; width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER/^.{2,}$/REG@MSG<img src=&quot;{$app_path}{$static_path}/img/error.png&quot; width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER" value="" name="account" id="userun" placeholder="仅支持6~16位中文、字母、数字的字符"> <div class="error"></div>               
            </div>
			<div class="user">
				<div class="userdefault">设置密码</div>
<input style="display:none">
<input type="password" required="required"
 yyucval="/^.{6,}$/REG@MSG<img src={$app_path}{$static_path}/img/error.png width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER/^.{0,60}$/REG@MSG<img src=&quot;{$app_path}{$static_path}/img/error.png&quot; width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER" 
 value="" name="passwd" id="userpwd" placeholder="密码必须大于6位，支持6~16位字母、数字"> <div class="error"></div>    
            </div>
            <div class="user">
				<div class="userdefault">确认密码</div>
<input style="display:none">
		      <input type="password" required="required" value="" name="repasswd" id="userrepwd" placeholder="请重新输入一次您的密码，和上方密码一致">		                    
            </div>
            <div class="user">
				<div class="userdefault">Q Q号码</div>
<input type="number" required="required" value="" name="qq" id="userqq" placeholder="请填写常用的QQ号，用于找回账号"> <div class="error"></div>    
            </div>
            <div class="user">
				<div class="userdefault">常用邮箱</div>
<input type="email" required="required"
 yyucval="YYUCUNIQUE@user@email@REG@MSG<img src={$app_path}{$static_path}/img/error.png width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/REG@MSG<img src=&quot;{$app_path}{$static_path}/img/error.png&quot; width=&quot;20px&quot; height=&quot;20px&quot;>ONE@ANOTHER"
  value="" name="email" id="useremail" placeholder="请填写常用的邮箱地址"> <div class="error"></div>        
            </div>
            <div class="user">
				<div class="userdefault">手&nbsp;&nbsp;机&nbsp;&nbsp;号</div>
<input type="number" required="required" value="" name="mobile" id="usertelephone" placeholder="请填写常用的手机号"> <div class="error"></div>    
            </div>
            <div class="user">
				<div class="userdefault">验&nbsp;&nbsp;证&nbsp;&nbsp;码</div>

<input type="text" required="required" placeholder="点击输入" name="code" id="userYYUC_vercode" value="">
                <div class="vercode" id="codearea">
                <img id="yyuc_verimg" title="点击切换" style="width:120px;height:40px;" src="{:U('Register/regverifyCode')}"></div>
            </div>

     <button type="button" class="loginbtn">注册</button>

    		<div style="padding-top:20px; color:#FFF; text-align:center">
            <span style="color:#FFF;font-size:12;">快速了解使用前的常见问题</span></a>
       <br>     <br>  	<span style="color:#FFF;font-size:12;">账号内容有违反微信相关之要求的，一经发现直接封号不予处理！</span>
            </div>
    	</form></div>
	</div>
</div>
	<script type="text/javascript">
	$(function(){
		$("#reg-now").click(function(){
			$('.overlay').hide();
			$('#reg-select').hide();
			$('#username').focus();
		});
	});

	$(".loginbtn").click(function(){
		$('.error').remove();
		$('.maroon').css('display','none')
		$('#regform').validate(function(m){
		    if(m.length>0){
		        for(var i=0;i<m.length;i++){
		            //m[i].e为验证错误的表单元素
		            //m[i].m该单元的错误信息（非空错误为false，其他为信息数组）
		 		    //var ntip = $('<div class="help-inline" style="color:red">'+(m[i].m===false?'该项内容不能为空':m[i].m.join(','))+'</div>');
                   var ntip = $('<div class="error">'+(m[i].m===false?'<img src="{$app_path}{$static_path}/img/error.png" width="20px" height="20px">':m[i].m.join(','))+'</div>');
		            $(m[i].e).after(ntip.show());
		            $(m[i].e).one('blur',function(){
		            	ntip.remove();
		            });
		        }
		    }else{
		    	if(checkname($('#userun').val())){
		    		$.ajax({
		    			url:$("#regform").attr("action"),
		    			type:'post',
		    			dataType:'json',
		    			data:$("#regform").serialize(),
		    			success:function(data){
		    				if(data.status=='2'){
		    					alert(data.msg);
		    				}else{
		    					location.href=data.redirect;
		    				}
		    			}
		    		});
		    	}else{
		    		tusi('用户名格式不正确');
		    	}
		        
		    }
		});
	});
		
	function checkname(str){
		  return str.match(/^([\u4e00-\u9fa5]|[\ufe30-\uffa0]|[A-Za-z0-9_])*$/);
	}
	$(document).ready(function(){
	//更换验证码
		$("#yyuc_verimg").click(function(){
			$(this).attr("src","{:U('Register/regverifyCode')}");
		});
		function getRandom(n){
	    	return Math.floor(Math.random()*n+1)
	    }
	});
</script>
<div style="width:0px;height:0px;position:absolute;top:-999px;left:-999px;">
</body>
</html>